package com.stn.zjx.givingtreasure.net;


import com.stn.zjx.givingtreasure.utils.Md5Utils;


public interface BaseApi {
    //基础地址
    String base_url="http://132.232.85.182";
    //文件服务器地址
//    String file_url="http://www.tofacial.com:7099";
      String file_url="http://132.232.85.182";


      //获取银行logo
      String alipayGetBankLogo="https://apimg.alipay.com/combo.png?d=cashier&t=";

 //获取客户端外网IP
    String webip_url="http://pv.sohu.com/cityjson?ie=utf-8";

     String server_name="givingtreasure";
    //生成的客户端和服务器匹配必须传的共有参数
     String KEY_Client_CommonParams="client_common_key";
     String Client_CommonParams=
            Md5Utils.MD5Encode("com.stn.zjx.givingtreasure","UTF-8",true);
     String COMMON_AES_KEY=Md5Utils.MD5Encode(server_name,"UTF-8",
            true).substring(0,16);
    //加密AES的KEY
     String MD5_AES_KEY=
            Md5Utils.MD5Encode("com.stn.zjx.givingtreasure.aes","UTF-8",true).substring(0,16);

    //请求成功
   int REQUEST_SUCCESS_CODE=200;

    //请求失败
   int REQUEST_ERROR_CODE=500;
    //错误请求
   int REQUEST_BAD_CODE=400;
    //请求异常
   int REQUEST_THROW_CODE=303;

    //请求失败token失效
    int REQUEST_TOKEN_ERROR_CODE=201;
    //登录被限制
    int REQUEST_LOGINEXIT_ERROR_CODE=202;
    //调起检测支付密码
       int REQUEST_ChECK_PAY_PASSWORD_CODE=10001;
   //请求状态，KEY
   String KEY_STATUS="status";
   //请求消息，KEY
   String KEY_MSESSAGE="message";
   //请求数据，KEY
   String KEY_DATA="data";

  String wx_getToken="https://api.weixin.qq.com/sns/oauth2/access_token";
  String wx_getInfo="https://api.weixin.qq.com/sns/userinfo";
}
